From: Owen W. Taylor Date: Tue, 18 Aug 2009 22:02:53 +0000 (-0400) Subject: Clear save_id when removing idle_save_application_usage() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11003 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d116f707c5e4b4e3f07ff5ae3db162b01b1ca11e;p=gnome-shell.git Clear save_id when removing idle_save_application_usage() When we remove the timeout for saving application usage when application usage is disabled, set the save_id member variable to 0. http://bugzilla.gnome.org/show_bug.cgi?id=589676 --- diff --git a/src/shell-app-monitor.c b/src/shell-app-monitor.c index 453a5f536..a6409574a 100644 --- a/src/shell-app-monitor.c +++ b/src/shell-app-monitor.c @@ -1657,7 +1657,10 @@ update_enable_monitoring (ShellAppMonitor *monitor) { monitor->watched_window = NULL; if (monitor->save_id) - g_source_remove (monitor->save_id); + { + g_source_remove (monitor->save_id); + monitor->save_id = 0; + } } monitor->enable_monitoring = enable;